import request from "@/utils/request";



export function add(data) {
  return request({
    url: "/sinohis/pension/checkin/checkindestine/destine",
    method: 'post',
    data

  });

}
export function back(data) {
  return request({
    url: "/sinohis/pension/checkin/checkindestine/unsubscribe/"+data.identify,
    method: 'put',
    data

  });

}
export function revise(data) {
  return request({
    url: "/sinohis/pension/checkin/checkindestine/modifyDestineInfo/"+data.identify,
    method: 'put',
    data

  });

}
export function search(params) {
  return request({
    url: "/sinohis/pension/checkin/checkindestine/secrchCheckInDestine",
    method: 'GET',
    params

  });

}
export function searchstor(params) {
  return request({
    url: "/sinohis/pension/profession/bedmanager/building/condition",
    method: 'get',
    params

  });

}
export function searchroom(params) {
  return request({
    url: "/sinohis/pension/profession/bedmanager/room/condition",
    method: 'get',
    params

  });

}

export function searchbed(params) {
  return request({
    url: "/sinohis/pension/profession/bedmanager/bed/condition",
    method: 'get',
    params

  });

}
export function searchrecordCode(params) {
  return request({
    url: "/sinohis/pension/profession/reception/consultant/"+params.consultant,
    method: 'get',
    params

  });

}
//查询老人档案


export function searchelderlyfile(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/query/file/"+params.elderlyCondition,
    method: 'get',
    params

  });

}
